using System;
using System.Collections.Generic;

namespace nHydrate.EFCore.DataAccess
{
	/// <summary>
	/// This is the return type of all DTO paged select queries.
	/// </summary>
	/// <typeparam name="T">A DTO type</typeparam>
	public partial class DTOPagedQueryResults<T> where T : nHydrate.EFCore.DataAccess.IDTO
	{
		/// <summary>
		/// The current page to load
		/// </summary>
		public int CurrentPage { get; set; }
		/// <summary>
		/// The returned total number of pages for the query
		/// </summary>
		public int TotalPages { get; set; }
		/// <summary>
		/// The returned total number of items for the query
		/// </summary>
		public int TotalRecords { get; set; }
		/// <summary>
		/// The actual returned data for the query
		/// </summary>
		public List<T> GridData { get; set; }
	}
}
